package org.dftproject.genesis.data.genealogy.impl;

import org.dftproject.genesis.data.genealogy.INamePart;
import org.dftproject.genesis.data.impl.EntityImpl;

public class NamePartImpl extends EntityImpl implements INamePart {

	private final String type;
	private final String value;

	public NamePartImpl(String value) {
		this(value, null);
	}

	public NamePartImpl(String value, String type) {
		this.value = value;
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public String getValue() {
		return value;
	}

}
